<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>BS Scheduler Registration</title>
        <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
        <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
        <link REL=StyleSheet HREF="site.css" TYPE="text/css" MEDIA=screen>

    </head>
    <body>
        <%-- TODO: handle registration errors:
            err=userexists  user with same e-mail already exists in data file
            err=pwdmatch    password fields do not match
            --%>
        <div id="doc">  
        <div id="hd"><h1 class="login">Create a new account</h1></div>
        <div id="bd" class="login">
        <fieldset class="login">
            <legend class="login">Register</legend>
        <p class="login_register">Please provide the following information (all fields are required):</p>
        <form action="createuser.jsp" method="POST" name="login">
            <p><label for="firstname" class="login">First name: </label>
            <input type="text" name="firstname" id="firstname" class="login"/></p>
            <p><label for="lastname" class="login">Last name: </label>
            <input type="text" name="lastname" id="lastname" class="login"/></p>
            <p><label for="email" class="login">E-mail address: </label>
            <input type="text" name="email" id="email" class="login"/></p>
            <p><label for="password1" class="login">Password: </label>
            <input type="password" name="password1" id="password1" class="login"/></p>
            <p><label for="password2" class="login">Confirm password: </label>
            <input type="password" name="password2" id="password2" class="login"/></p>
            <input class="login_submit" type="submit" value="Register" />
        </form>
        </fieldset>
        </div>
        <div id="ft"></div>
        </div>
    </body>
</html>
